package model.area;

public class GetAreaVisitor implements AreaVisitor {
	@Override
	public String visit(Building building) {
		return "\nBuilding: " + building.getName() + "\nRent: "
				+ building.getRent() + "\nService costs: "
				+ building.getServiceCosts();
	}

	@Override
	public String visit(Field field) {
		String isArtificialGrass = field.isArtificialGrass() ? "yes" : "no";
		return "\nField: " + field.getName() + "\nRent: " + field.getRent()
				+ "\nField has artificial grass: " + isArtificialGrass;
	}
}
